package com.yunpeng.dishes.common.vo;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;

/**
 * OrderNutrientsVO
 *
 * @author : Moore(hemw)
 * @date : 2020-03-28
 */
public class OrderNutrientsVO implements Serializable {

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单编号
     */
    private String orderCode;

    /**
     * 商户id
     */
    private Long merchantId;

    /**
     * 消费者id
     */
    private Long consumerId;

    /**
     * 版本
     */
    private Short version;

    /**
     * 快照数据
     */
    private JSONObject snapshot;

    /**
     * 用餐时段
     * 1、早餐;2、午餐;3、晚餐;4、夜宵
     */
    private Short mealType;

    public OrderNutrientsVO() {
    }

    public OrderNutrientsVO(Long orderId, String orderCode, Long merchantId, Long consumerId, Short version, JSONObject snapshot, Short mealType) {
        this.orderId = orderId;
        this.orderCode = orderCode;
        this.merchantId = merchantId;
        this.consumerId = consumerId;
        this.version = version;
        this.snapshot = snapshot;
        this.mealType = mealType;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(Long consumerId) {
        this.consumerId = consumerId;
    }

    public Short getVersion() {
        return version;
    }

    public void setVersion(Short version) {
        this.version = version;
    }

    public JSONObject getSnapshot() {
        return snapshot;
    }

    public void setSnapshot(JSONObject snapshot) {
        this.snapshot = snapshot;
    }

    public Short getMealType() {
        return mealType;
    }

    public void setMealType(Short mealType) {
        this.mealType = mealType;
    }

    @Override
    public String toString() {
        return "OrderNutrientsVO{" +
                "orderId=" + orderId +
                ", orderCode='" + orderCode + '\'' +
                ", merchantId=" + merchantId +
                ", consumerId=" + consumerId +
                ", version=" + version +
                ", snapshot=" + snapshot +
                ", mealType=" + mealType +
                '}';
    }
}
